<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>房源管理后台</title>
<link rel="stylesheet" type="text/css" href="${ctx}/admin/css/login.css" />
<script type="text/javascript" src="${ctx}/admin/js/jquery-1.11.1.js"></script>
<script type="text/javascript" src="${ctx}/admin/js/jquery.validator.js"></script>
<link rel="stylesheet" type="text/css"
	href="${ctx}/admin/css/jquery.validator.css" />
<script type="text/javascript" src="${ctx}/admin/js/common.js"></script>
<script type="text/javascript" src="${ctx}/admin/js/base.js"></script>
<script type="text/javascript" src="${ctx}/admin/js/zh_CN.js"></script>
<script type="text/javascript">

	function fleshVerify() {
		var r =  Math.random();
		//重载验证码
		$('#verifyImg').attr('src', "${ctx}/captcha?r=" +r);
		$("#r").val(r);
	}
	//跳出FRAME
	$(function() {
		fleshVerify();
		if (window.top && window.top.location.href != window.location.href) {
			window.top.location.href = window.location.href;
		}
		$('#reset').click(function() {
			$("#error_info").text("");
			$("input[name='idCard']").attr("value", "");
			$("input[name='password']").attr("value", "");
			$("input[name='captcha']").attr("value", "");
		})
	});
</script>

</head>
<body>
	<div class="login">
		<div class="login_c">
			<div id="dengl">
				<form method='post' name="login" id="form1"
					action="${ctx}/admin/login/post">
					<div class="logo">后台管理系统</div>
					<div id="error_info" class="error_i">
						<span id="error_text"><#if error??> ${error} </#if> <#if
							message??> ${message} </#if></span>
					</div>
					<div class="dengl_long">
						<ul>
							<li>用户名<input name="idCard" type="text"
								data-rule="用户名:required" value="" /></li>
							<li>密&nbsp;&nbsp;&nbsp;码<input name="password"
								type="password" data-rule="密码:required" value="" /><span
								id="error" style="color: red"></span></li>
							<li></li>
						</ul>
						<input id="r" name="r" type="hidden" value="">
					</div>
					<div class="dengl_short">
						<ul>
							<li>验证码<input name="captcha" type="text"
								data-rule="验证码:required" style="margin-right: 115px" /></li>
							<li><img src="" id="verifyImg" width="93"
								height="32" style="margin-left: -115px" onClick="fleshVerify()" /></li>
						</ul>
					</div>
					<div class="clear"></div>
					<div class="dengl_button">
						<ul>
							<li><input type="submit" value="确定" /></li>
							<li><input type="reset" id="reset" value="取消" /></li>
						</ul>
					</div>
				</form>
			</div>
		</div>
	</div>

</body>
</html>